package injectionPattern_using;

public class MyDiApplication implements Consumer {

	private MessageService service;
	
	public MyDiApplication(MessageService svc){
		
		this.service=svc;
	}
		
	@Override
	public void processMessages(String msg, String rec) {
		this.service.sendMessage(msg, rec);
	}

}
